------------------------------
| Contact Info               |
------------------------------

BBHack - Earthbound Zero Hacking Tool
Written by uyuyuy99

If anyone finds any bugs, has requests for features, or has discovered more data in the EB0 ROM, contact me:
	PM on starmen.net (uyuyuy99)
	PM on smwcentral.net (uyuyuy99)
	Making a post on the forum thread
	Email (uyuyuy99@gmail.com)


------------------------------
| How Stuff Works            |
------------------------------

I will attempt to explain how EB0's map is stored to clear up any confusion with how the map editor works.

IMPORTANT: Only areas of the map with the same palette can be viewed at once - unlike Earthbound where this is determined by the tileset. Therefore, only 1 map palette (with 4 sub-palettes) can be loaded at once. There are 32 map graphic tilesets in EB0. Only 2 of these tilesets can be loaded at once.

There are 16x16 tiles that are made up of 8x8 tiles. There are 128 of these 16x16 tiles in each tileset. There are also 64x64 "chunks" - these are what the EB0 map is composed of. These chunks are made up of 16x16 tiles, and there are 64 of them in each tileset. Each tile in a chunk can have a different sub-palette that it uses. Sometimes, these 16x16 tiles inside the chunks are set to use the "alternate tileset" - this means that instead of using the same tileset that the chunk is a part of, it takes a 16x16 tile from whatever other tileset is loaded at the time. Remember how I said that 2 map tilesets could be loaded at once? Well, in short, there's no way to tell what chunks like this really "look" like until you know what tilesets are loaded, which makes shit really confusing. This, kids, is why we avoid dealing with "alternate tileset" tiles as much as possible.

So now you know what 16x16 tiles and 64x64 chunks are. There's only one thing left to cover - sectors. Sectors are 256x256 areas on the map that determine the palette, tileset 1, and tileset 2 loaded for that area. For example, if you want to add a bunch of indoor rooms where the town of Snowman used to be, you will need to change the palette/tilesets for that area. Remember, you can CTRL-click on an area to select that sector, and toggle the sector grid on/off in the view menu.


------------------------------
| Keyboard Shortcuts         |
------------------------------

- Map Editor:
	RIGHT CLICK: Select (copy) a chunk from the map
	CTRL+LEFT CLICK: Select tileset/palette from map without placing tile
	SHIFT+LEFT CLICK: Open chunk in chunk editor from the map editor

- Chunk Editor:
	RIGHT CLICK: Select (copy) a tile from the chunk editor
	1-4: Select sub-palette 1 through 4
	INSERT: Place a tile from the alternate tileset (shouldn't need to be used very often...)